<?php

namespace app\api\controller;


class Company extends ApiBase {
    public function index() {
        $result = model('Company')->get(1);
        if (!$result) {
            return show(config('code.fail'), 'fail');
        }
        return show(config('code.success'), 'success', $result);
    }
}